package com.zhouchb.blog.dao;

import com.zhouchb.blog.bean.Comment;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author Zhouchb
 * @Create 2021-09-2021/9/12 :21:42
 * @Description
 */
@Mapper
public interface CommentRepository {

    public List<Comment> listCommentByBlogId(Long blogId);
    public Comment getCommentById(Long parentCommentId);
    public int saveComment(Comment comment);
    public List<Comment> listParemtIdNull(Long blogId);
    public List<Comment> listParemtIdNoNull(Long blogId);
    public List<Comment> listReplyComments(Long parentCommentId);
}
